<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>修改用户信息</title>
    <link rel="stylesheet" href="./libs/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="./css/reset.css">
    <link rel="stylesheet" href="./css/iconfont.css">
    <link rel="stylesheet" href="./css/main.css">
</head>

<body>
    <div class="container-fluid">
        <div class="common_title">
            用户信息修改
        </div>
        <div class="container-fluid common_con">
            <form class="form-horizontal article_form" id="form">

            </form>
        </div>
    </div>

    <script type="text/html" id="user_form">
        {{each arr}}
        <div class="form-group">
            <label for="inputEmail1" class="col-sm-2 control-label">用户名称：</label>
            <div class="col-sm-4">
                <input type="text" name="username" class="form-control username" id="username"
                    value={{$value.username}}>
            </div>
        </div>
        <div class="form-group">
            <label for="inputEmail2" class="col-sm-2 control-label">昵称：</label>
            <div class="col-sm-4">
                <input type="text" name="nickname" class="form-control nickname" id="nickname"
                    value={{$value.nickname}}>
            </div>
        </div>
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">邮箱：</label>
            <div class="col-sm-4">
                <input type="email" name="email" class="form-control email" id="email" value={{$value.email}}>
            </div>
        </div>

        <div class="form-group">
            <label for="inputPassword3" class="col-sm-2 control-label">用户图标：</label>
            <div class="col-sm-10">
                <img src={{$value.userPic}} alt="" class="user_pic">
                <input style="display: block" name="userPic" type="file" id="exampleInputFile">
            </div>
        </div>

        <div class="form-group">
            <label for="inputEmail4" class="col-sm-2 control-label">密码：</label>
            <div class="col-sm-4">
                <input type="password" name="password" class="form-control password" id="password"
                    value={{$value.password}}>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="button" class="btn btn-success btn-edit">修改</button>
            </div>
        </div>
        {{/each}}
    </script>

    <script src="./libs/jquery/jquery.min.js"></script>
    <script src="./js/api.js"></script>
    <script src="./js/user.js"></script>
    <script src="../js/template-web.js"></script>

</body>

</html>